
<gallerylist>
<?php
        require_once '../../config.php';
        $con = mysql_connect($_app_db_config['host'], $_app_db_config['user'], $_app_db_config['pass']);
        mysql_select_db($_app_db_config['dbname'], $con);
        mysql_query("set names 'utf8'", $con);
		$id = $_COOKIE['albumid'];
        $sql = "SELECT * FROM item WHERE album_id='$id'";
        echo $sql;
        $rs = mysql_query($sql);
        While ($item = mysql_fetch_array($rs)){
	?>
	<record>
		<img>../images/<?php echo $item['thumbnail']; ?></img>
		<bigpicture>../images/<?php echo $item['image']; ?></bigpicture>
		<desc>
				<![CDATA[
					<span class="mainTitleFerrari"><?php echo $item['description']; ?></span><br/>
					<span class="reg"></span>
				]]>
		</desc>
		<link><?php echo $item['link']; ?></link>
	</record>
	<?php } ?>
</gallerylist>